package com.ruoyi.order.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户填写完单后存储的项目数据值对象 wx_form_record_item
 *
 * @author ruoyi
 * @date 2024-09-05
 */
public class WxFormRecordItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 关联表单wx_form_record的id */
    @Excel(name = "关联表单wx_form_record的id")
    private Long formRecordId;

    /** 表单选项的值，为checkbox类型则用json数组表达 */
    @Excel(name = "表单选项的值，为checkbox类型则用json数组表达")
    private String value;

    /** 表单选项名称 */
    @Excel(name = "表单选项名称")
    private String label;

    /** 选项类型（1:text，2:number，3:select，4:radio，5:checkbox） */
    @Excel(name = "选项类型", readConverterExp = "1=:text，2:number，3:select，4:radio，5:checkbox")
    private Long type;

    /** 业务逻辑的标记 */
    @Excel(name = "业务逻辑的标记")
    private String handleFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFormRecordId(Long formRecordId)
    {
        this.formRecordId = formRecordId;
    }

    public Long getFormRecordId()
    {
        return formRecordId;
    }
    public void setValue(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }
    public void setLabel(String label)
    {
        this.label = label;
    }

    public String getLabel()
    {
        return label;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setHandleFlag(String handleFlag)
    {
        this.handleFlag = handleFlag;
    }

    public String getHandleFlag()
    {
        return handleFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("formRecordId", getFormRecordId())
                .append("value", getValue())
                .append("label", getLabel())
                .append("type", getType())
                .append("handleFlag", getHandleFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
